package com.hospital.register.constants;

/**
 * 常见正则表达式
 *
 * @author 刘逸晖
 */
public class RegexConstants {

    private RegexConstants() {
    }

    /**
     * 手机号
     */
    public static final String PHONE = "^1(?:(?:3[\\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\\d])|(?:9[1589]))\\d{8}$";

    /**
     * 验证码
     */
    public static final String VERIFICATION_CODE = "^[1-9]\\d{3,5}$";

}
